package com.example.aspect;

import com.example.vo.UserVO;
import org.springframework.cache.annotation.CachePut;
import org.springframework.stereotype.Component;

@Component
public class CachePutUtils {

    @CachePut(cacheNames="test",key = "#vo.getUserId()+'_'+#vo.getUserName()")
    public UserVO cache(UserVO vo){
        return vo;
    }
}
